const ArrayUtil = {
  page: function <T>(array: T[], pageNo: number, pageSize: number): T[] {
    const startIndex = (pageNo - 1) * pageSize;
    const endIndex = startIndex + pageSize;

    // 返回对应页数据
    return array.slice(startIndex, endIndex);
  }
}

export default ArrayUtil;
